package com.ttai.ui.activity;

import android.app.AlertDialog;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.ttai.R;
import com.ttai.ui.base.BaseActivity;
import com.ttai.ui.other.MessageDialog;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class VerifyModeModel extends BaseActivity {
    @Bind(R.id.btn_taisecurtycode)
    Button btnTaisecurtycode;
    @Bind(R.id.btn_notecode)
    Button btnNotecode;
    @Bind(R.id.btn_mailcode)
    Button btnMailcode;
    @Bind(R.id.voicecode)
    Button voicecode;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_verifymodel);
        ButterKnife.bind(this);
    }

    @Override
    public void next(View view) {

    }

    @Override
    public void pre(View view) {

    }

    @Override
    public void setComponet() {

    }

    @OnClick({R.id.btn_taisecurtycode, R.id.btn_notecode, R.id.btn_mailcode, R.id.voicecode})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.btn_taisecurtycode:
                String message="态安全验证：通过您在登录网站上进行点击“态安全验证”，APP会为您推送6位验证码，将该验证码填写至验证处即可完成登录。";
                new AlertDialog.Builder(this)
                        .setMessage(message)
                        .setCancelable(true)
                        .setIcon(R.drawable.jieshao)
                        .setTitle("身份验证介绍")
                        .setPositiveButton("确定",null)
                        .show();
                break;
            case R.id.btn_notecode:
                 message="短信验证：通过您在登录网站上进行点击“态安全验证”，手机会通过短信为您推送6位验证码，将该验证码填写至验证处即可完成登录。";
                new AlertDialog.Builder(this)
                        .setMessage(message)
                        .setCancelable(true)
                        .setIcon(R.drawable.jieshao)
                        .setTitle("短信验证码获取介绍")
                        .setPositiveButton("确定",null)
                        .show();
                break;
            case R.id.btn_mailcode:
                message="邮箱验证：通过您在登录网站上进行点击“态安全验证”，您的注册邮箱会收到6位数邮件验证码，将该验证码填写至验证处即可完成登录。";
                new AlertDialog.Builder(this)
                        .setMessage(message)
                        .setCancelable(true)
                        .setIcon(R.drawable.jieshao)
                        .setTitle("邮件验证码获取介绍")
                        .setPositiveButton("确定",null)
                        .show();
                break;
            case R.id.voicecode:
                message="语音验证：通过您在登录网站上进行点击“态安全验证”，您的手机会通过电话语音收到6位数语音验证码，将该验证码填写至验证处即可完成登录。";
                new AlertDialog.Builder(this)
                        .setMessage(message)
                        .setCancelable(true)
                        .setIcon(R.drawable.jieshao)
                        .setTitle("语言验证码获取介绍")
                        .setPositiveButton("确定",null)
                        .show();
                break;
        }
    }
}
